﻿using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using BS_2.Class;
using ESRI.ArcGIS.esriSystem;
namespace BS_2
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Form_NewPrj());

            Application.Run(new Form_Login()) ;
            //Application.Run(new Form_AddData());
            //Application.Run(new Form_NewSub());
            //Application.Run(new Form_EditSub());
            /*String sql = "select appenddata from append where appendcode = 7";
            DataTable dt = DataAccess.Get_DataTable(sql, "ms");
            byte[] bt = (byte[])dt.Rows[0][0];
            MemoryStream ms = new MemoryStream(bt);*/
            //Application.Run(new Form_PdfShow(ms));
            //Application.Run(new Form_PhotoShow(ms));
            //bool i = ByteHelper.DeleteFile(Globale.filepath);
            Globale.folderpath = Application.StartupPath.ToString() + "\\Temp\\";
            ByteHelper.clearFolder(Globale.folderpath);
            //Console.WriteLine(i);
        }
    }
}
